
// Boost Includes ==============================================================
#include <boost/python.hpp>
#include <boost/cstdint.hpp>

// Includes ====================================================================
#include <OpenSG/OSGTextureBackground.h>
#include <OpenSG/OSGTextureBackgroundBase.h>
#include <OpenSG/OSGDrawAction.h>
#include <OpenSG/OSGViewport.h>
#include <OsgPtrHelpers.h>

// Using =======================================================================
using namespace boost::python;

// Declarations ================================================================
namespace  {

BOOST_PYTHON_MEMBER_FUNCTION_OVERLOADS(osg_TextureBackground_dump_overloads_0_2, dump, 0, 2)


}// namespace 


// Module ======================================================================
void Export_src_pyste_gen_TextureBackground()
{
    scope* osg_TextureBackgroundBase_scope = new scope(
    class_< osg::TextureBackgroundBase, bases< osg::Background > , boost::noncopyable >("TextureBackgroundBase", no_init)
//        .def_readonly("ColorFieldMask", &osg::TextureBackgroundBase::ColorFieldMask)
//        .def_readonly("TextureFieldMask", &osg::TextureBackgroundBase::TextureFieldMask)
//        .def_readonly("TexCoordsFieldMask", &osg::TextureBackgroundBase::TexCoordsFieldMask)
//        .def_readonly("RadialDistortionFieldMask", &osg::TextureBackgroundBase::RadialDistortionFieldMask)
//        .def_readonly("CenterOfDistortionFieldMask", &osg::TextureBackgroundBase::CenterOfDistortionFieldMask)
//        .def_readonly("HorFieldMask", &osg::TextureBackgroundBase::HorFieldMask)
//        .def_readonly("VertFieldMask", &osg::TextureBackgroundBase::VertFieldMask)
//        .def_readonly("MTInfluenceMask", &osg::TextureBackgroundBase::MTInfluenceMask)
        .def("getClassType", &osg::TextureBackgroundBase::getClassType, return_internal_reference< 1 >())
        .def("getClassTypeId", &osg::TextureBackgroundBase::getClassTypeId)
        .def("getType", (osg::FieldContainerType& (osg::TextureBackgroundBase::*)() )&osg::TextureBackgroundBase::getType, return_internal_reference< 1 >())
        .def("getType", (const osg::FieldContainerType& (osg::TextureBackgroundBase::*)() const)&osg::TextureBackgroundBase::getType, return_internal_reference< 1 >())
        .def("getContainerSize", &osg::TextureBackgroundBase::getContainerSize)
        //.def("getColor", (osg::Color4f& (osg::TextureBackgroundBase::*)() )&osg::TextureBackgroundBase::getColor, return_value_policy< copy_const_reference >())
        .def("getColor", (const osg::Color4f& (osg::TextureBackgroundBase::*)() const)&osg::TextureBackgroundBase::getColor, return_value_policy< copy_const_reference >())
        //.def("getTexture", (osg::TextureChunkPtr& (osg::TextureBackgroundBase::*)() )&osg::TextureBackgroundBase::getTexture, return_value_policy< copy_const_reference >())
        .def("getTexture", (const osg::TextureChunkPtr& (osg::TextureBackgroundBase::*)() const)&osg::TextureBackgroundBase::getTexture, return_value_policy< copy_const_reference >())
        //.def("getRadialDistortion", (osg::Real32& (osg::TextureBackgroundBase::*)() )&osg::TextureBackgroundBase::getRadialDistortion, return_value_policy< copy_const_reference >())
        .def("getRadialDistortion", (const osg::Real32& (osg::TextureBackgroundBase::*)() const)&osg::TextureBackgroundBase::getRadialDistortion, return_value_policy< copy_const_reference >())
        //.def("getCenterOfDistortion", (osg::Vec2f& (osg::TextureBackgroundBase::*)() )&osg::TextureBackgroundBase::getCenterOfDistortion, return_value_policy< copy_const_reference >())
        .def("getCenterOfDistortion", (const osg::Vec2f& (osg::TextureBackgroundBase::*)() const)&osg::TextureBackgroundBase::getCenterOfDistortion, return_value_policy< copy_const_reference >())
        //.def("getHor", (osg::UInt16& (osg::TextureBackgroundBase::*)() )&osg::TextureBackgroundBase::getHor, return_value_policy< copy_const_reference >())
        .def("getHor", (const osg::UInt16& (osg::TextureBackgroundBase::*)() const)&osg::TextureBackgroundBase::getHor, return_value_policy< copy_const_reference >())
        //.def("getVert", (osg::UInt16& (osg::TextureBackgroundBase::*)() )&osg::TextureBackgroundBase::getVert, return_value_policy< copy_const_reference >())
        .def("getVert", (const osg::UInt16& (osg::TextureBackgroundBase::*)() const)&osg::TextureBackgroundBase::getVert, return_value_policy< copy_const_reference >())
        .def("getTexCoords", (osg::Pnt2f& (osg::TextureBackgroundBase::*)(const osg::UInt32) )&osg::TextureBackgroundBase::getTexCoords, return_value_policy< copy_non_const_reference >())
        //.def("getTexCoords", (osg::MFPnt2f& (osg::TextureBackgroundBase::*)() )&osg::TextureBackgroundBase::getTexCoords, return_value_policy< copy_const_reference >())
        .def("getTexCoords", (const osg::MFPnt2f& (osg::TextureBackgroundBase::*)() const)&osg::TextureBackgroundBase::getTexCoords, return_value_policy< copy_const_reference >())
        .def("setColor", &osg::TextureBackgroundBase::setColor)
        .def("setTexture", &osg::TextureBackgroundBase::setTexture)
        .def("setRadialDistortion", &osg::TextureBackgroundBase::setRadialDistortion)
        .def("setCenterOfDistortion", &osg::TextureBackgroundBase::setCenterOfDistortion)
        .def("setHor", &osg::TextureBackgroundBase::setHor)
        .def("setVert", &osg::TextureBackgroundBase::setVert)
        .def("getBinSize", &osg::TextureBackgroundBase::getBinSize)
        .def("copyToBin", &osg::TextureBackgroundBase::copyToBin)
        .def("copyFromBin", &osg::TextureBackgroundBase::copyFromBin)
        .def("create", &osg::TextureBackgroundBase::create)
        .def("createEmpty", &osg::TextureBackgroundBase::createEmpty)
        .def("shallowCopy", &osg::TextureBackgroundBase::shallowCopy)
        .staticmethod("getClassType")
        .staticmethod("create")
        .staticmethod("createEmpty")
        .staticmethod("getClassTypeId")
    );

    scope().attr("HorFieldId") = (int)osg::TextureBackgroundBase::HorFieldId;
    scope().attr("TexCoordsFieldId") = (int)osg::TextureBackgroundBase::TexCoordsFieldId;
    scope().attr("CenterOfDistortionFieldId") = (int)osg::TextureBackgroundBase::CenterOfDistortionFieldId;
    scope().attr("TextureFieldId") = (int)osg::TextureBackgroundBase::TextureFieldId;
    scope().attr("RadialDistortionFieldId") = (int)osg::TextureBackgroundBase::RadialDistortionFieldId;
    scope().attr("VertFieldId") = (int)osg::TextureBackgroundBase::VertFieldId;
    scope().attr("NextFieldId") = (int)osg::TextureBackgroundBase::NextFieldId;
    scope().attr("ColorFieldId") = (int)osg::TextureBackgroundBase::ColorFieldId;

    delete osg_TextureBackgroundBase_scope;

    class_< osg::TextureBackground, bases< osg::TextureBackgroundBase > , boost::noncopyable, osg::TextureBackgroundRefPtr >("TextureBackground", no_init)
        .def("clear", &osg::TextureBackground::clear)
        .def("changed", &osg::TextureBackground::changed)
        .def("dump", &osg::TextureBackground::dump, osg_TextureBackground_dump_overloads_0_2())
    ;


    register_ptr_to_python<osg::TextureBackgroundPtr>();
    implicitly_convertible<osg::TextureBackgroundRefPtr, osg::TextureBackgroundPtr>();
    implicitly_convertible<osg::TextureBackgroundPtr, osg::BackgroundPtr>();
    
    def("RefPtr", &pyopensg::ToRefPtr<osg::TextureBackgroundPtr>);
    def("FCPtr", &pyopensg::ToFcPtr<osg::TextureBackgroundPtr>);
}

